<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/js/themes/default/easyui.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/js/themes/icon.css" />
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/ainit.css" type="text/css"></link>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/sysPrint/printCss/print.css" />
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.4.4.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.easyui.min.1.2.2.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.json-2.4.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.ainit-1.0.0.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/jquery.ainit-1.1.0.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/model.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/perlize.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/save.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/initPage.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/sysReport/report.js"></script>

    <script type="text/javascript">
        $(function(){
            $("#dotted :last ").remove()
        });
    </script>
    <script type="text/javascript">
        window.onload=function name(){
            window.print();
            window.close();
        }
    </script>
    <style type="text/css">
        .tr1 td{
            border: solid 1px #000000;
        }
    </style>
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="720px" style="word-wrap:break-word;word-break:break-all;white-space:normal;">
    <tr>
        <th colspan='13'  style="font-size: 24px;">${Company.COM_FLLNAME}每月实销上报单</th>
    </tr>
    <tr height=10px>
    </tr>
    <tr class="tr1">
        <td colspan="2"style="text-align:right" width="80px"><strong>客户名称：</strong></td>
        <td colspan="3" class="td_left" >&nbsp;&nbsp;${data.CLIENT_ID}</td>
        <td style="text-align:right"><strong>片区经理：</strong></td>
        <td colspan="2" class="td_left">&nbsp;&nbsp;${data.O_ID_LASTGR}</td>
        <td style="text-align:right"><strong>录单员：</strong></td>
        <td colspan="2"  class="td_left">&nbsp;&nbsp;${data.INPUT_MAN}</td>
        <td style="text-align:right"><strong>录单日期：</strong></td>
        <td colspan="2"  class="td_left">&nbsp;&nbsp;${data.INPUT_DATE}</td>

    </tr>
    <tr class = "tr1">
        <td style="text-align:right"><strong>导入月份：</strong></td>
        <td colspan="2"  class="td_left" >&nbsp;&nbsp;${data.IMPORT_DATE}</td>
        <td style="text-align:right"><strong>单&nbsp;&nbsp;据&nbsp;号：</strong></td>
        <td colspan="2" class="td_left">&nbsp;&nbsp;${data.DJ_CODE}</td>
        <td colspan=2 style="text-align:right" ><strong>备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</strong></td>
        <td  colspan=6>&nbsp;&nbsp;${data.MEMO}</td>
    </tr>
    <tr>
        <td width="30px"></td>
        <td width="50px"></td>
        <td width="130px"></td>
        <td width="60px"></td>
        <td width="80px"></td>
        <td width="80px"></td>
        <td width="130px"></td>
        <td width="50px"></td>
        <td width="45px"></td>
        <td width="80px"></td>
        <td width="35px"></td>

    </tr>
    <tr height=10px>
    </tr>
    <tr>
        <td colspan="12">请仔细核对货物品种、数量、配书，如有货物与单据不符请及时与我公司联系。</td>
    </tr>
    <tr>
        <td colspan="12"><hr width=700px align="left"  /></td>
    </tr>
    <tr>
        <td style="text-align:center" width="35px"><strong>序号</strong></td>
        <td colspan=2 width="130px" style="text-align:center" ><strong>书号</strong></td>
        <td colspan=2 width="100px" style="text-align:center"><strong>商品名称</strong></td>
        <td style="text-align:center"> <strong>定价1</strong></td>
        <td style="text-align:center"><strong>销售数量1</strong></td>
        <td style="text-align:center"><strong>历史平均发货折扣</strong></td>
        <td style="text-align:center"><strong>销售单价</strong></td>
        <td style="text-align:center"><strong>客户库存</strong></td>
    </tr>
    <tr>
        <td colspan="12"><hr width=700px align="left" /></td></tr>

    <c:forEach items="${dataList}" var="temp" >
        <tr>
            <td style="text-align:center">${temp.ROWNUM}</td>
            <td colspan=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;${temp.H_ISBN}</td>
            <td colspan=2 style="text-align:center">${temp.H_ID}</td>
            <td style="text-align:center">${temp.H_PRICE}</td>
            <td style="text-align:center">${temp.H_AMOUNT}</td>
            <td style="text-align:center">${temp.H_DISCOUNT}</td>
            <td style="text-align:center">${data.XS_PRICE}</td>
            <td style="text-align:center">${data.XS_MONEY}</td>
            <td style="text-align:center">${data.AMOUNT}</td>


        </tr>
        <tr height=10px>
        </tr>
    </c:forEach>
    <tr height=10px>
    </tr>
    <tr >
        <td class="td_right" width="70px"><strong>制单人:</strong></td>
        <td class="td_left"  colspan=3>&nbsp;${data.INPUT_MAN }</td>
        <td class="td_right" ><strong>审核人:</strong></td>
        <td class="td_left"  colspan=3>&nbsp;${data.VERIFY_MAN }</td>

    </tr>
    <tr >
        <td colspan="12"><hr width=700px align="left"  /></td>
    </tr>
    <tr >
        <td class="td_right" ><strong>户&nbsp;&nbsp;&nbsp;名:</strong></td>
        <td class="td_left"  colspan=3>&nbsp;${Company.COM_PRINTNAME}</td>
        <td class="td_right" ><strong>&nbsp;&nbsp;&nbsp;联系人:</strong></td>
        <td class="td_left"  colspan=2>&nbsp;${Company.COM_PRINTNAME }</td>
        <td class="td_right" ><strong>邮&nbsp;&nbsp;&nbsp;编:</strong></td>
        <td class="td_left"  colspan=3>&nbsp;${Company.COM_ZIP}</td>
    </tr>
    <tr >
        <td class="td_right" ><strong>地&nbsp;&nbsp;&nbsp;址:</strong></td>
        <td class="td_left"  colspan=3>&nbsp;${Company.COM_ADDRESS }</td>
        <td class="td_right" ><strong>&nbsp;&nbsp;&nbsp;电&nbsp;&nbsp;&nbsp;话:</strong></td>
        <td class="td_left"  colspan=2>&nbsp;${Company.COM_TEL}</td>
        <td class="td_right" ><strong>传&nbsp;&nbsp;&nbsp;真:</strong></td>
        <td class="td_left"  colspan=3>&nbsp;${Company.COM_FAX}</td>
    </tr>
    <tr >
        <td class="td_right" ><strong>开户行:</strong></td>
        <td class="td_left"  colspan=3>&nbsp;${Company.ACCOUNT_BANK1}</td>
        <td class="td_right" ><strong>&nbsp;&nbsp;&nbsp;账&nbsp;&nbsp;&nbsp;号:</strong></td>
        <td class="td_left"  colspan=2>&nbsp;${Company.ACCOUNT_NO1}</td>
        <td class="td_right" ><strong>邮&nbsp;&nbsp;&nbsp;箱:</strong></td>
        <td class="td_left"  colspan=3>&nbsp;${Company.ACCOUNT_NO1 }</td>
    </tr>
    <tr >
        <td colspan="12"><hr width=700px align="left" /></td>
    </tr>
    <tr height=10px></tr>
    <tr >
        <td class="td_right" colspan=2 ><strong>验&nbsp;&nbsp;&nbsp;书:</strong></td>
        <td class="td_left"  ></td>
        <td class="td_right" ><strong>会&nbsp;&nbsp;&nbsp;计:</strong></td>
        <td class="td_left"  ></td>
        <td class="td_right" ><strong>经手人:</strong></td>
        <td class="td_left"  colspan=2></td>
        <td class="td_right" ><strong>收货人:</strong></td>
        <td class="td_left"  colspan=3></td>
    </tr>
    <tr height=10px></tr>
    <tr>
        <td colspan="12">请仔细核对货物品种、数量、金额，如有货物与单据明细不符，请及时与我公司人员联系！！！</td>
    </tr>
    <tr height=10px></tr>
    <tr>
        <td colspan="12" align="right">
            <span style="font-size: 11px ;color: #9BA4AF">技术支持:</span>
            <span style="font-size: 12px ;color: #9BA4AF">上海爱你特科技  www.ainit.cn</span>
        </td>
    </tr>
</table>
</body>
</html>